package com.linkhub.oms.admin.modules.user.bankstatement.excel.enums;

import com.linkhub.oms.common.enums.mp.CurrencyTypeEnum;
import com.linkhub.oms.component.excel.converter.ExcelCellEnumConvert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 币种映射枚举
 *
 * @author Frank
 */
@Getter
@AllArgsConstructor
public enum CurrencyTypeCellMappingEnum implements ExcelCellEnumConvert<String, Integer> {
    /**
     * 币种映射枚举
     */
    EUR("EUR - Euro", CurrencyTypeEnum.EUR.getCode()),
    GBP("GBP - Great British Pound", CurrencyTypeEnum.GBP.getCode()),
    CAD("CAD - Canadian dollar", CurrencyTypeEnum.CAD.getCode()),
    USD("USD - United States Dollar", CurrencyTypeEnum.USD.getCode()),
    AUD("AUD - Australian Dollar", CurrencyTypeEnum.AUD.getCode()),
    RMB("RMB", CurrencyTypeEnum.RMB.getCode());


    private final String cellData;

    private final Integer convertValue;

    @Override
    public String getCode() {
        return this.cellData;
    }

    @Override
    public Integer getValue() {
        return this.getConvertValue();
    }
}
